package com.tyk.bookstore.back.member.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

@Schema(name = "DeliveryAddress", description = "送货地址")
@TableName("delivery_address")
@Data
public class DeliveryAddressDo implements Serializable {
    @Serial
    private static final long serialVersionUID = 1;
    @Schema(description = "ID")
    @TableId("id")
    private Long id;
    @Schema(description = "用户ID")
    @TableField("member_id")
    private Long memberId;
    @Schema(description = "名称")
    @TableField("name")
    private String name;
    @Schema(description = "收件人姓名")
    @TableField("consignee")
    private String consignee;
    @Schema(description = "所在地区")
    @TableField("area_id")
    private Long areaId;
    @Schema(description = "详细地址")
    @TableField("address")
    private String address;
    @Schema(description = "手机号")
    @TableField("phone")
    private String phone;
}
